import { useState } from "react";

const C = function (props) {
  return <>
    <h2>倒叙显示</h2>
    {/* 字符串转数组,数组右倒叙方法,然后再转回字符串 */}
    <p>{props.value.split('').reverse().join('')}</p>
    <input type="color"/>
  </>;
};

export default C;
